<%@ page import="com.qipay.baas.model.User" %>
<html>
<body>
<h2>welcome</h2>
</body>
</html>
<%
    User user = (User) session.getAttribute("user");
    if (user==null){
        response.sendRedirect(request.getContextPath()+"/login");
    }else {
        response.sendRedirect(request.getContextPath()+"/index");
    }

%>